#ifndef METESTATIONFORM_H
#define METESTATIONFORM_H

#include <QWidget>
#include <QChart>
#include <QVector>

namespace Ui {
class MeteStationForm;
}

class MeteStationForm : public QWidget
{
    Q_OBJECT

public:
    explicit MeteStationForm(QWidget *parent = nullptr);
    ~MeteStationForm();

private:
    void InitChart_Temperature();
    void InitChart_Humidity();
    void InitChart_Pressure();
    void InitChart_Rain();
    void InitChart_WindSpeed();
    void InitChart_WindDirection();


signals:
    void updateView_temperature(int temperature);

    void updateView_humidity(int humidity);

    void updateView_pressure(int pressure);

    void updateView_rain(int rain);

    void updateView_wind(int wind);

    void updateView_windDirection(int direction);



private:
    Ui::MeteStationForm *ui;
    QChart *m_chart_Temperature;
    QChart *m_chart_Humidity;
    QChart *m_chart_Pressure;
    QChart *m_chart_Rain;
    QChart *m_chart_WindSpeed;
    QChart *m_chart_WindDirection;

    QVector<int> m_yAxis_humidity_Max;
    QVector<int> m_yAxis_humidity_Min;
};

#endif // METESTATIONFORM_H
